//
//  HHRecommendUserCell.m
//  百思不得姐
//
//  Created by hjl on 16/4/12.
//  Copyright © 2016年 hjl. All rights reserved.
//

#import "HHRecommendUserCell.h"
#import "HHRecommendUser.h"
#import <UIImageView+WebCache.h>
@interface HHRecommendUserCell ()

@property (weak, nonatomic) IBOutlet UIImageView *iconImageView;
@property (weak, nonatomic) IBOutlet UILabel *nameLabel;
@property (weak, nonatomic) IBOutlet UILabel *fansCountLabel;
@end

@implementation HHRecommendUserCell

- (void)setUser:(HHRecommendUser *)user{
    _user = user;
    [self.iconImageView sd_setImageWithURL:[NSURL URLWithString:user.header] placeholderImage:[UIImage imageNamed:@"defaultUserIcon"]];
    self.nameLabel.text = user.screen_name;
    self.fansCountLabel.text = [NSString stringWithFormat:@"%zd人关注", user.fans_count];
}


- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
